<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="top">
        Enter Inventory
    </ui:define>

    <ui:define name="left">
    </ui:define>



    <ui:define name="body">
        <h:form id="enterInventoryForm">
            <h:panelGrid columns="2" border="0">
                <h:outputLabel for="category" value="Category:"/>
                <h:selectOneMenu id="category">
                    <c:forEach items="#{categoryCTRL.categoryList}" var="items">
                        <f:selectItem itemLabel ="#{items.level}#{items.name}" itemValue="#{items.id}"/>
                    </c:forEach>
                </h:selectOneMenu>
                <h:commandButton value="Submit" action="#{itemCTRL.selectCategoryBeforeNewItem}"/>
            </h:panelGrid>
        </h:form>
    </ui:define>

</ui:composition>
